package com.lagou.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotNull;

@FeignClient(value = "lagou-service-user", path = "/user")
@Service
public interface UserClient {
    @GetMapping("/info/{token}")
    String info(@PathVariable @NotNull String token);
}
